  -- Gurtogg Bloodboil --
function spell0_22948(pUnit, Event) --@Arcing Smash,n/a--
pUnit:FullCastSpellOnTarget(40457,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22948', 787, 1)
end
function spell1_22948(pUnit, Event) --@Arcing Smash,Heal--
pUnit:FullCastSpellOnTarget(40599,pUnit)
pUnit:RegisterEvent('Sorts_22948', 4423, 1)
end
function spell2_22948(pUnit, Event) --@Bewildering Strike,Heal--
pUnit:FullCastSpellOnTarget(40491,pUnit)
pUnit:RegisterEvent('Sorts_22948', 8000, 1)
end
function spell3_22948(pUnit, Event) --@Bloodboil,Heal--
pUnit:FullCastSpellOnTarget(42005,pUnit)
pUnit:RegisterEvent('Sorts_22948', 24000, 1)
end
function spell4_22948(pUnit, Event) --@Charge,Heal--
pUnit:FullCastSpellOnTarget(40602,pUnit)
pUnit:RegisterEvent('Sorts_22948', 812, 1)
end
function spell5_22948(pUnit, Event) --@Eject,Heal--
pUnit:FullCastSpellOnTarget(40486,pUnit)
pUnit:RegisterEvent('Sorts_22948', 0, 1)
end
function spell6_22948(pUnit, Event) --@Eject,Heal--
pUnit:FullCastSpellOnTarget(40597,pUnit)
pUnit:RegisterEvent('Sorts_22948', 2000, 1)
end
function spell7_22948(pUnit, Event) --@Fel-Acid Breath,Heal--
pUnit:FullCastSpellOnTarget(40508,pUnit)
pUnit:RegisterEvent('Sorts_22948', 22000, 1)
end
function spell8_22948(pUnit, Event) --@Fel-Acid Breath,Heal--
pUnit:FullCastSpellOnTarget(40595,pUnit)
pUnit:RegisterEvent('Sorts_22948', 5000, 1)
end
function Sorts_22948(pUnit, Event)
choix_sorts_22948 = math.random(0, 8)
if choix_sorts_22948 == 0 then
pUnit:RegisterEvent('spell0_22948', 1, 1)
end
if choix_sorts_22948 == 1 then
pUnit:RegisterEvent('spell1_22948', 1, 1)
end
if choix_sorts_22948 == 2 then
pUnit:RegisterEvent('spell2_22948', 1, 1)
end
if choix_sorts_22948 == 3 then
pUnit:RegisterEvent('spell3_22948', 1, 1)
end
if choix_sorts_22948 == 4 then
pUnit:RegisterEvent('spell4_22948', 1, 1)
end
if choix_sorts_22948 == 5 then
pUnit:RegisterEvent('spell5_22948', 1, 1)
end
if choix_sorts_22948 == 6 then
pUnit:RegisterEvent('spell6_22948', 1, 1)
end
if choix_sorts_22948 == 7 then
pUnit:RegisterEvent('spell7_22948', 1, 1)
end
if choix_sorts_22948 == 8 then
pUnit:RegisterEvent('spell8_22948', 1, 1)
end
end
function mob22948_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22948', math.random(1500, 3000), 1)
end
function mob22948_Leave(pUnit, Event)
end
function mob22948_Kill(pUnit, Event)
end
function mob22948_Die(pUnit, Event)
pUnit:RemoveEvents();
end
RegisterUnitEvent(22948, 1, 'mob22948_Action')
RegisterUnitEvent(22948, 2, 'mob22948_Leave')
RegisterUnitEvent(22948, 3, 'mob22948_Kill')
RegisterUnitEvent(22948, 4, 'mob22948_Die')
